/*
 * DespachosSource.java
 *
 * Created on 13 de septiembre de 2007, 09:54 AM
 *
 * To change this template, choose Tools | Options and locate the template under
 * the Source Creation and Management node. Right-click the template and choose
 * Open. You can then make changes to the template in the Source Editor.
 */

package com.src.computec.radar.despachos.source;

import java.util.ResourceBundle;

/**
 *
 * @author aocampo
 */
public class DespachosSource {
    
    protected static DespachosSource despachosSource;
    private static ResourceBundle despachosSetup;
    private static ResourceBundle despachosMessagesSetup;
    
    /** Creates a new instance of DespachosSource */
    public DespachosSource() {
        despachosSetup = ResourceBundle.getBundle("DespachosSetup");
        despachosMessagesSetup = ResourceBundle.getBundle("DespachosMessagesSetup");
    }
    
    public static DespachosSource getInstance() {
        if (despachosSource == null) {
            despachosSource = new DespachosSource();
        }
        return despachosSource;
    }
    
    public String getDespachosSetupKey(String key) {
        return despachosSetup.getString(key);
    }
    
    public String getDespachosMessagesSetupKey(String key) {
        return despachosMessagesSetup.getString(key);
    }   
}